package com.authstr.auth.mapper.inter;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.authstr.model.base.BaseUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao extends BaseMapper<BaseUser> {

    Page query(@Param("page") Page<BaseUser> page, @Param("role_id") String role_id,
               @Param("gmt_create_start") String gmt_create_start, @Param("gmt_create_end") String gmt_create_end,
               @Param("account") String account);

    BaseUser getByAccount(@Param("account") String account);

    List<String> getMenuIdByRoleId(String roleId);
}
